home *** CD-ROM | disk | FTP | other *** search
- on moveObjectPerformance
- global gObjectH
- set currentPosition to the locH of sprite 7
- if currentPosition = 57 then
- startTimer()
- end if
- if (currentPosition = 188) or (currentPosition > 188) then
- set raceTimeTics to the timer
- set the floatPrecision to 2
- set raceTime to float(raceTimeTics / 60.0)
- set the text of member "myTimer" of castLib "text" to string(raceTime)
- updateStage()
- resetPerformance()
- else
- repeat with nn = 7 to 8
- set the locH of sprite nn to currentPosition + 1
- set gObjectH to currentPosition
- end repeat
- updateStage()
- end if
- end
-
- on resetPerformance
- repeat with nn = 7 to 8
- set the locH of sprite nn to 0
- end repeat
- updateStage()
- end
-